package org.ccahouse.ccatrain.dto;

import lombok.Data;
import org.springframework.stereotype.Component;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Component
@Data
public class AuthUserDto {
    @NotNull(message = "账号不能为空")
    private String username;

    @NotNull(message = "密码不能为空")
    @Min(value = 5, message = "密码不得低于五位")
    private String password;

    @NotNull(message = "用户名不能为空")
    private String name;
}
